formatMinDecimals

fun formatMinDecimals(value: String, decimalChar: Char, numDecimals: Int): String

Formats the given double 0..1.00 as a percentage with the specified number of decimal digits showing as a minimum, there could be more.

Return

The provided string with the number of decimal places requested as a minimum.

Parameters

value

The numeric string as currently formatted.

decimalChar

The decimal character to display.

numDecimals

The number of decimals to force display of.